/*
 * @Author: lvye
 * @Description:
 * @Date: 2023-08-25 17:42:48
 * @LastEditTime: 2023-08-28 10:16:41
 * @FilePath: \vue3-ts\src\global\register-properties.ts
 */
import { App } from "vue"
import { formatUtcString, dateFormat } from "@/utils/date-format"
export default function registerProperties(app: App): void {
  app.config.globalProperties.$filters = {
    formatTime(value: string) {
      return dateFormat(value)
    }, // 用于格式化时间
    formatUtcString(value: string) {
      return formatUtcString(value)
    } // 用于格式化UTC时间
  }
}
